package com.example.demo.entity;

import lombok.Data;

@Data
public class UserInfo {
    public int id;
    public String name;
    public String password;
    public int age;

    public static void main(String[] args) {
        String fileName = "myimg.jpg";
        System.out.println(fileName.lastIndexOf("."));
        String substring = fileName.substring(0);

    }
}
